<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <!-- Layui -->
    <link rel="stylesheet" href="resources/layui/css/layui.css" media="all"/>
    <!-- style -->
    <link rel="stylesheet" href="resources/map/css/style.css" media="all"/>
</head>
<body>

<div class="layui-fluid">
    <div class="layui-row layui-col-space10">
        <form class="layui-form" action="" style="margin-top: 20px;">
            <div class="layui-col-sm6 layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">出租用户名称：</label>
                    <div class="layui-input-block">
                        <input type="text" name="perUserName" id="perUserName" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">车位地址：</label>
                    <div class="layui-input-block">
                        <input type="text" name="perStallAddress" id="perStallAddress" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>

            <div class="layui-col-sm6 layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">车位单价(元/h)：</label>
                    <div class="layui-input-block">
                        <input type="text" name="perStallPrice" id="perStallPrice" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">出租用户联系方式：</label>
                    <div class="layui-input-block">
                        <input type="text" name="perUserTel" id="perUserTel" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

<script type="text/javascript" src="resources/layui/layui.js"></script>

<script type="text/javascript" src="resources/layui/layui.js"></script>
<script type="text/javascript" src="resources/map/mapContent/userMap.js"></script>
<script>
    layui.use(['layer','form'], function(){
        var layer = layui.layer,
            form = layui.form;

        //监听提交
        form.on('submit(demo1)', function(data){
            layer.alert(JSON.stringify(data.field), {
                title: '最终的提交信息'
            })
            return false;
        });

    });
</script>
</body>
</html>